<?php $this->Html->meta("keywords", "keywords, are, sweet", array("inline" => false));?>
<?php $this->Html->meta("description", "keywords, are, sweet", array("inline" => false));?>
<?php $this->Html->css('/css/aboutus', array("inline" => false));?>
<?php echo $this->element('sub_menu'); ?>
<div class="container mt-30 news-page">
    <h2 class="main-title mb-30"><?php echo __('News')?></h2>
    <div class="cf mb-50">
      <div class="col-md-9 col-sm-9 col-xs-12">
        <?php foreach($articles as $article): ?>
        <div class="row list-news">
          <div class="col-xs-9 col-sm-4 col-md-4 col-xs-offset-2 col-sm-offset-0">
            <img src="/files/images/<?php echo $article['Article']['image']?>" alt="" class="img-responsive" />
          </div>
          <div class="col-xs-12 col-sm-8 col-md-8">
            <h3 class="title-h3">
                <a href="/articles/view/<?php echo $article['Article']['article_id']?>"><?php echo $article['Article']['title'. $code]?></a>
            </h3>
            <?php
            $date = new DateTime($article['Article']['created_date']);
            $createDate = $date->format('d F, Y');
            ?>
            <p class="date-news">by Admin | <?php echo $createDate;?></p>
            <p class="br-dotted">&nbsp;</p>
            <p class="text-news"><?php echo $article['Article']['short_des'. $code]?></p>
            <a href="/articles/view/<?php echo $article['Article']['article_id']?>" class="viewmore-news over4"><?php echo __('read more')?></a>
          </div>
        </div>
        <?php endforeach;?>
      </div><!-- /col-md-9 -->

      <?php echo $this->element('news/side-left');?>

      </div><!-- /col-md-3 -->
    </div>
  </div><!-- /container -->

